/*
 *emit0(int n)
 *
 */

void emit0(int n){
	if(n<100){
		fprintf(fpc, "%s",reg[n]);
	}
	else{
		if(n<200){
			fprintf(fpc,"v%.2nd",n-100);
		}
		else{
			fprintf(fpc,"c%.2nd",n-200);
		}
	}
		
}

/*
 *emit1(int i)
 *
 */
void emit1(int i){

	fprintf(fpc,"\t%s\n", inst[i]);
	
}

/*
 *emit2(int i, int j)
 *
 */
 void emit2(int i, int j){
 
	fprintf(fpc, "\t%s\t", inst[i]);
	emit0(j);
	fputs("\n",fpc);
	
}
/*
 *emit3(int i, int j, int k)
 *
 */
 void emit3(int i, int j, int k){
 
	fprintf(fpc,"\t%s\t", inst[i]);
	emit0(j);
	fputs(",",fpc);
	emit0(k);
	fputs("\n",fpc);
	
}
 
 
 
 
 
 
 
 